<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            background-color: black;
            padding: 0;
            margin: 0;
        }

        .an {
            border: 50px solid transparent;
            border-top: 0;
            border-bottom: 50px solid #f90;
            position: absolute;
            animation: run 5s infinite;
        }

        .min {
            border: 10px solid transparent;
            border-top: 0;
            border-bottom: 10px solid #2ef;
        }

        @keyframes run {
            0% {
                top: 0;
                left: 0;
                transform: rotateZ(-45deg);
            }

            25% {
                top: 0;
                left: 500px;
                transform: rotateZ(45deg);

            }

            50% {
                top: 500px;
                left: 500px;
                transform: rotateZ(135deg);

            }

            75% {
                top: 500px;
                left: 0;
                transform: rotateZ(225deg);


            }

            100% {
                top: 0;
                left: 0;
                transform: rotateZ(315deg);

            }
        }
    </style>
</head>

<body>
    <div class="an">
        <div class="min"></div>
    </div>
</body>

</html>